
The C++ examples use NI VISA library to establish TCP/IP connection with the VNA software.
To compile the code, visa library must be linked.

If you are using Visual Studio, (other IDEs may use a different linking process) to link visa library:

1) Download and install NI VISA here:https://www.ni.com/en-us/support/downloads/drivers/download.ni-visa.html#346210
   If this link does not work, google "NI VISA download"

2) In Visual Studio, go to "Project" -> "<project name> Properties..." -> expand "C/C++" inside "Configuration Properties" -> "General" -> add C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Include\ to "Additional Include Directories". visa.h is inside of this folder and this header file contains definitions of all visa data types and costants.

3) In Visual Studio, go to "Project" -> "<project name> Properties..." -> expand "Linker" inside "Configuration Properties" -> "General" ->  add C:\Program Files (x86)\IVI Foundation\VISA\WinNT\lib\msc\ to "Additional Library Directories". Then go back to "Linker" inside "Configuration Properties", go to "Input" -> type "visa32.lib" in "Additional Dependencies". visa32.lib is an import library. It allows the linker to link the code with visa32.dll whici is located under C:/Windows/system32/visa32.dll.
